window = global;

var PUBLICKEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQComqoAyvbCqO1EGsADwfNTWFQIUbm8CLdeb9TgjGLcz95mAo204SqTYdSEUxFsOnPfROOTxhkhfjbRxBV4/xjS06Y+kkUdiMGFtABIxRQHQIh0LrVvEZQs4NrixxcPI+b1bpE0gO/GAFSNWm9ejhZGj7UnqiHphnSJAVQNz2lgowIDAQAB";

const JSEncrypt = require('jsencrypt');
var encrypt = new JSEncrypt();
encrypt.setPublicKey(PUBLICKEY)
let result = encrypt.encrypt("123456789")
console.log(result.length);
console.log(result);
